home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / autodate.arc / AUTODATE.TXT < prev   
Text File  |  1991-09-02  |  4KB  |  111 lines

  1.                                AUTODATE
  2.                                ========
  3.  
  4. This week: the author answers your questions.
  5.  
  6. Q: Okay Stevie, just what does this amazing new program do?
  7.  
  8. A: It sets the date automatically.  And don't call me Stevie.
  9.  
  10. Q: Sorry.  How does it work?
  11.  
  12. A: It reads the date from two bytes in the bootsector and sets the system
  13.    date to be the day after.  Then it writes the new date back into the
  14.    bootsector for next time.
  15.  
  16. Q: Ingenious.  But how does the date get into the bootsector in the first
  17.    place?
  18.  
  19. A: You set the date with the control panel or whatever you normally use.
  20.    Then you run autodate.prg, holding down the RIGHT shift key as you
  21.    double-click, and keep it pressed until the program has run.  If some
  22.    bogus date is printed on the screen, you obviously weren't doing it
  23.    right.  Duh.  Start again at "You set the date".
  24.  
  25. Q: I presume I should put autodate.prg in the AUTO folder of my favourite
  26.    boot disk - this being the one whose bootsector I have just written the
  27.    date in - and not hold down any keys when it's running in future.
  28.  
  29. A: My sources say yes.
  30.  
  31. Q: This does seem to suggest I boot from that disk no more or less than
  32.    once every day.
  33.  
  34. A: Sheesh, everyone's a critic.  If you boot from the disk more than once
  35.    during a day, hold down LEFT shift for the second and subsequent boots,
  36.    from after you switch on until the date appears.  Then the system date
  37.    gets set to the value it found in the bootsector, and it doesn't write
  38.    out anything at all to disk.  And if you miss a few days, just keep
  39.    running autodate.prg from the desktop, until it prints the correct date
  40.    on the screen.
  41.  
  42. Q: And I have to leave my favourite boot disk write-enabled.
  43.  
  44. A: Them's the breaks, kiddo.  You could always keep a separate disk with
  45.    autodate on it and run it from the desktop, but it's an awful lot of
  46.    trouble to go to.
  47.  
  48. Q: Exactly where in the bootsector does it write the date?
  49.  
  50. A: Into the word at offset 6 bytes.  It's the unused part of the serial
  51.    number.  MS-DOS uses this part of the serial number, so you might have
  52.    problems if you use your favourite boot disk with a PC.  A somewhat
  53.    unlikely scenario.
  54.  
  55. Q: Some misguided people put the month first when they write the date.
  56.    What have you done to pander to their illogical needs?
  57.  
  58. A: I'm glad you asked.  If the system is in NTSC mode (60Hz), the day and
  59.    month are reversed on-screen.  At least, it works for me when I switch
  60.    to 60Hz.
  61.  
  62. Q: A very convenient solution.  Does it work with hard drives/5.25" disk
  63.    drives/CDI/punch cards?
  64.  
  65. A: No idea.  I doubt it.  Don't come crying to me if it trashes any of
  66.    your valuable GIFs.  Er, I mean files.
  67.  
  68. Q: I take it leap years are catered for.
  69.  
  70. A: Of course.
  71.  
  72. Q: What about centuries?
  73.  
  74. A: I am led to believe 2000 will be a leap year because it can be divided
  75.    by 400.  However, autodate will incorrectly treat the year 2100 as a
  76.    leap year.  I hardly think you'll be in a position to care.
  77.  
  78. Q: What does it do about the system time?
  79.  
  80. A: Zilch.  What would you suggest?  Anyway, if you're anything like me,
  81.    midnight usually isn't too far out.
  82.  
  83. Q: I am very proud of my collection of rare and dangerous viruses.  Virii.
  84.    Will they be affected by autodate.prg?
  85.  
  86. A: No.  It only writes once, to the disk in drive A.  And even then, it
  87.    leaves normal executable bootsectors the way it found them.  Don't try
  88.    setting the date on autobooting games like Super Hang-On and Virus.
  89.    They may well stop working.  Apart from that, there's not much point.
  90.  
  91. Q: I reckon this amazing 100% assembly language program has saved me from
  92.    having to fork out for one of those ever-so-slightly-overpriced battery
  93.    clock doobries.  How can I ever repay you?
  94.  
  95. A: Send a postcard to:
  96.               Stephen K Mulrine
  97.               132 Kingswood Drive
  98.               King's Park
  99.               Glasgow G44 4RB
  100.               SCOTLAND.
  101.    I'd like to know how far this program spreads!  Feel free to add any
  102.    (reasonable) comments.  You can currently send email to
  103.               au215@cleveland.freenet.edu
  104.    but I'd still like the postcard.
  105.    
  106. Autodate is an Inedible Software production.
  107. Inedible Software are:
  108. Stephen K Mulrine
  109. Graeme Mullin
  110. Dame Judi Dench
  111.